// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addBudget POST /api/budget/add */
export async function addBudgetUsingPost(body, options) {
  return request("/api/budget/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteBudget POST /api/budget/delete */
export async function deleteBudgetUsingPost(body, options) {
  return request("/api/budget/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editBudget POST /api/budget/edit */
export async function editBudgetUsingPost(body, options) {
  return request("/api/budget/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getBudgetVOById GET /api/budget/get/vo */
export async function getBudgetVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/budget/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listBudgetByPage POST /api/budget/list/page */
export async function listBudgetByPageUsingPost(body, options) {
  return request("/api/budget/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listBudgetVOByPage POST /api/budget/list/page/vo */
export async function listBudgetVoByPageUsingPost(body, options) {
  return request("/api/budget/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyBudgetVOByPage POST /api/budget/my/list/page/vo */
export async function listMyBudgetVoByPageUsingPost(body, options) {
  return request("/api/budget/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateBudget POST /api/budget/update */
export async function updateBudgetUsingPost(body, options) {
  return request("/api/budget/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
